package com.hsgene.discount.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * 查询用户优惠券对象
 *
 * @author wxf
 * @date 2018/8/6 11:45
 **/
public class UserCouponInfoDto implements Serializable {

    /**
     * 优惠券状态
     */
    private int status;
    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;
    /**
     * 过期时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date expirationTime;
    /**
     * id
     */
    private String id;
    /**
     * 优惠券id
     */
    private String couponId;

    /**
     * 优惠券类型
     */
    private String couponType;
    /**
     * 优惠券条件
     */
    private String couponCondition;
    /**
     * 优惠券内容
     */
    private String couponContent;
    /**
     * 优惠券图片
     */
    private String couponImageUrl;

    private String couponApplicationType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    public String getCouponType() {
        return couponType;
    }

    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }

    public String getCouponCondition() {
        return couponCondition;
    }

    public void setCouponCondition(String couponCondition) {
        this.couponCondition = couponCondition;
    }

    public String getCouponContent() {
        return couponContent;
    }

    public void setCouponContent(String couponContent) {
        this.couponContent = couponContent;
    }

    public String getCouponImageUrl() {
        return couponImageUrl;
    }

    public void setCouponImageUrl(String couponImageUrl) {
        this.couponImageUrl = couponImageUrl;
    }

    public String getCouponApplicationType() {
        return couponApplicationType;
    }

    public void setCouponApplicationType(String couponApplicationType) {
        this.couponApplicationType = couponApplicationType;
    }

    @Override
    public String toString() {
        return "UserCouponInfoDto{" +
                "status=" + status +
                ", createTime=" + createTime +
                ", expirationTime=" + expirationTime +
                ", id='" + id + '\'' +
                ", couponId='" + couponId + '\'' +
                ", couponType='" + couponType + '\'' +
                ", couponCondition='" + couponCondition + '\'' +
                ", couponContent='" + couponContent + '\'' +
                ", couponImageUrl='" + couponImageUrl + '\'' +
                ", couponApplicationType='" + couponApplicationType + '\'' +
                '}';
    }
}
